package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.BtyBrand;
import cn.stylefeng.guns.sys.modular.system.model.BtyBankyebDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 档案表 Mapper 接口
 * </p>
 * @author liuy
 * @since
 */
public interface BtyBrandMapper extends BaseMapper<BtyBrand> {

    /**
     * 获取档案管理列表
     */
    Page<Map<String, Object>> list(@Param("page") Page page, @Param("condition") String condition, @Param("dm") String dm);

    Page<Map<String, Object>> listYaoma(@Param("page") Page page, @Param("condition") String condition, @Param("dm") String dm,@Param("flag") String flag);

    List<BtyBrand> kjList();

    List<Map<String, String>> getCwry();

    /**
     * 判断该财务码是否重复
     * @param btyBrand
     * @return
     */
    int countCwm(BtyBrand btyBrand);
    List<BtyBrand> dmList();

    List<BtyBrand> dmLists();


    void add(BtyBrand btyBrand);

    /**
     * 查询店名列表
     * @return
     */
    List<Map> dmListGf();

    String getDm(String shopId);

    Page<Map<String, Object>> listAllYaoma(@Param("page") Page page,@Param("dm") String dm);

    List<Map<String, Object>> listSearchExport(@Param("dm") String dm);

    List<BtyBrand> cwmList();

    void updateCwm(BtyBrand btyBrand);

    List<BtyBrand> getYm();

    void updateYm(BtyBrand btyBrand);

    BtyBrand getSta(String dianming);

    List<BtyBrand> getBdCwm();

    List<Map> dmFentan(@Param("userName") String userName);

    List<Map> getGzhj(@Param("time") String time);

    List<Map> dmMdgz();

    String getTcDm(@Param("yaoma") String yaoma);

    List<Map> getDmList();

    List<Map> getYmList();

    String getYmByName(@Param("dm") String shopName);

    List<BtyBrand> getList();

    Page<Map<String, Object>> listCwm(@Param("page") Page page,@Param("cwm") String cwm,@Param("searchAll") String searchAll);

    List<Map<String, Object>> listCwmAll();

    int getMaxCwm();

    void addBrand(BtyBrand brand);

    void addYeb(BtyBankyebDto btyBankyebDto);
}
